package com.eastseeway.radioproject.entities;

import java.io.Serializable;

public class BaseResponse<T> implements Serializable{

    /**
     * {
     *     "success": true,
     *     "message": "OK",
     *     "code": 200,
     *     "result": "[{\"softStyle\":\"V1001\",\"softVer\":\"1.2\",\"softFile\":\"http://39.105.25.74:8080/jeecg-boot/sys/common/static/radio_project_1.0_release_202410231421_1729732754909.apk\"},{\"softStyle\":\"V1002\",\"softVer\":\"1.3\",\"softFile\":\"http://39.105.25.74:8080/jeecg-boot/sys/common/static/底板APP_1729741788409.bin\"},{\"softStyle\":\"负压板\",\"softVer\":\"2.3\",\"softFile\":\"http://39.105.25.74:8080/jeecg-boot/sys/common/static/负压板_1729741817903.bin\"}]",
     *     "timestamp": 1729820204559
     * }
     */

    private int code;
    private String message;
    private T result;
    private long timestamp;
    private boolean success;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
    public long getTimestamp() {
        return timestamp;
    }
    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}
